package thinkingJava.chapter05;

import static thinkingJava.chapter05.Spiciness.*;
import static util.Print.*;
public class Burrito {
	Spiciness degree;
	public Burrito(Spiciness degree) {
		this.degree = degree;
	}
	public void describe() {
		printnb("this burrito is ");
		switch(degree) {
		case NOT:
			print("not spity at all");
			break;
		case MILD:
		case MEDIUM:
			print("a little hot");
			break;
		case HOT:
		case FLAMING:
			default:
				print("maybe too hot.");
		}
	}
//	public String toString() {
//		return "Burrito is " + degree;
//	}
	public static void main(String[] args) {
//		System.out.println(new Burrito(NOT));
//		System.out.println(new Burrito(MEDIUM));
//		System.out.println(new Burrito(HOT));
		Burrito
			plain = new Burrito(Spiciness.NOT),
			greenChile = new Burrito(Spiciness.MEDIUM),
			jalapeno = new Burrito(Spiciness.HOT);
		plain.describe();
		greenChile.describe();
		jalapeno.describe();
	}
}
